The Slider Component > FSlider.getEnabled() |
FSlider.getEnabled()
Availability
Flash Player 6.
Usage
mySlider_sld.getEnabled()
Parameters
none
Returns
Returns a Boolean value representing the enabled state of the component.
Description
Returns a Boolean value representing the enabled state of the component. True indicates that the component is enabled, and accepting user interaction. False indicates that the component is not currently enabled, and will not accept or respond to user interaction.
Note
If the component's enabled state is set to false, the component will gray out in order to give a visual indication of its state.
Example
The slider_getEnabled.fla example file contains an example of using this method.
The following code traces whether the component is enabled or not.
if (mySlider_sld.getEnabled()){
trace("Slider Enabled");
} else {
trace("Slider Disabled");
}
See also